fix(themes): increase default retries in jobPollStatus #276
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
One of our customers is using ZCLI to automate their CI/CD and import themes. However, sometimes they are getting an error from the import command due to time out, but the theme is actually imported.
This happens because the
pollJobStatus
is using all the retries to fetch the job status but the job ends up finishing after all the checks are used.To prevent this from happening and in an attempt to make this command more stable, we are increasing the default value for retries, so that we continue polling for the status, giving more time for the job to update its status.
b381fe9
fix(themes): increase default retries in jobPollStatusDetail
Checklist